<?php
/**
 * @author 595949289@qq.com
 * @date 2025/3/17 12:57
 */

namespace CuiFox\yii\base;

class Dictionary
{
    /**
     * @return array
     */
    public static function all()
    {
        return [];
    }

    /**
     * @param $key
     * @return mixed|null
     */
    public static function one($key)
    {
        return static::all()[$key] ?? null;
    }

    /**
     * @return int[]|string[]
     */
    public static function keys()
    {
        return array_keys(static::all());
    }
}